package com.huluobo.a2308douyindemo.bean

import androidx.room.Entity
import androidx.room.PrimaryKey
import com.chad.library.adapter.base.entity.MultiItemEntity
import java.io.Serializable

/**
 *  Created by LC on 2025/10/22.
 */
@Entity(tableName = "video_info")
data class VideoBean(
    //作者
    val avatar_url: String,
    //频道id
    val channelid: String,
    //评论数量
    val commentnum: Int,
    val ctime: String,
    //描述
    val description: String,
    //组id
    val group_id: String,
    @PrimaryKey
    val id: Int,
    //图片url
    val image_url: String,
    val item_id: String,
    //标签id
    val labelIds: String,
    //名字
    val name: String,
    //播放数量
    val playnum: Int,
    //预览url
    val preview_url: String,
    //发布时间
    val publish_time: String?,
    //标题
    val title: String,
    val userid: String,
    //校验码
    val verifycode: String,
    //视频封面
    val videomainimag: String,
    //视频地址
    val videopath: String,
    //是否点赞
    var isLiked: Boolean,
    //是否收藏
    var isCollect: Boolean,
    var type: Int
) : MultiItemEntity, Serializable {
    override val itemType: Int
        get() = type

}